package com.cyx.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class EncodingController {
    @RequestMapping(value = "/encoding",method = RequestMethod.POST)
    public String encoding(String name,Model model){
        model.addAttribute("msg",name);
        //返回视图文件名
        return "hello";
    }
}
